package com.demo.study.java.templateTest;

/**
 * 具体实现类
 */
public class CookSteak extends  CookFood {
    @Override
    protected void prepareIngredients() {
        System.out.println("准备一份牛排");
    }

    @Override
    protected void cookIngredients() {
        System.out.println("将牛排放在煎锅中，煎熟两面。");
    }

    @Override
    protected void serveFood() {
        System.out.println("将煎好的牛排放在盘子里，淋上黑椒汁，摆在餐桌上。");
    }

    @Override
    protected boolean shouldAddSeasoning() {
        return false;
    }
}
